//
//  NetTool.m
//  Chat
//
//  Created by mac on 16/7/6.
//  Copyright © 2016年 Earl. All rights reserved.
//

#import "NetTool.h"
static MBProgressHUD *hud=nil;
@implementation NetTool

+(AFHTTPSessionManager *)getSessionManager{
    
    
    AFHTTPSessionManager *manage=[AFHTTPSessionManager manager];
    manage.requestSerializer=[AFHTTPRequestSerializer serializer];
    manage.responseSerializer=[AFHTTPResponseSerializer serializer];
    
    return manage;
}

+(void)showIndicator{
    
    if (!hud) {
        hud=[MBProgressHUD showHUDAddedTo:WINDOW animated:YES];
    }
    [hud show:YES];
}








@end
